package com.ktwlsoft.archivemanage.payload.operationLog;

import com.ktwlsoft.archivemanage.domain.dao.entity.EditHistory;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

@Setter
@Getter
public class SaveEditHistoryRequest {

    @NotNull
    private String oldEntity;

    @NotNull
    private String newEntity;

    @NotNull
    private EditHistory.BusinessFrom businessFrom;

    @NotNull
    private Long businessId;


    public SaveEditHistoryRequest() {
    }

    public SaveEditHistoryRequest(@NotNull String oldEntity, @NotNull String newEntity, @NotNull EditHistory.BusinessFrom businessFrom, @NotNull Long businessId) {
        this.oldEntity = oldEntity;
        this.newEntity = newEntity;
        this.businessFrom = businessFrom;
        this.businessId = businessId;
    }
}
